package com.monkey.tensquare.search.mapper;

import com.monkey.tensquare.search.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ArticleMapper extends ElasticsearchRepository<Article,String> {
    Page<Article> findByTitleOrContentLike(String title, String content, PageRequest of);
}
